﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
 Inherits="System.Web.Mvc.ViewPage<IntellectShop.Web2.Hardware.ViewModels.StoreCategoryIndexViewModel>" %>
<%@ Import Namespace="IntellectShop.Web2.Hardware.Code" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Html.Resource("BrowseCategories") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<script type="text/javascript" src='<%= ResolveUrl("~/Scripts/live.filter.1.2/jquery.liveFilter.min.js")%>'></script>
	<script type="text/javascript">
		$(document).ready(function () {
			$('ul.live_filter').liveFilter('slide');
		});
	</script>

	<h1><%= Html.Resource("BrowseCategories") %></h1>
	<div class="innerArticle">
		<% Html.RenderAction("ViewBody", "PageContent", new { pageContentUniqName = IntellectShop.Common.PageContentUniqName.SoftwareCategoryIndex }); %>
	</div>

	<h2><%= Html.Resource("SelectFromCategories")%>:</h2>
	<input class="filter" name="livefilter" type="text" value="" />
	<ul class="live_filter">
		<% foreach (IntellectShop.Common.Category each in Model.Categories)
		{ %>
		<li>
			<%= Html.ActionLink(
				each.ToString(),
				"Browse", "Software",
				new { CategoryID = each.CategoryID }, null)%>
		</li>
		<% } %>
	</ul>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SecondInfo" runat="server">
<div class="sidebaritem">
	<% Html.RenderPartial("SubmenuStore"); %>
</div>
</asp:Content>
